* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    overflow: hidden;
    background: url('../Public/IndexBackground.png') no-repeat center center fixed;
    background-size: cover;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.content-wrapper {    
    border-radius: 20px;
    padding: 60px 50px;    
    max-width: 500px;
    width: 100%;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.main-title {
    font-size: 52px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 16px;
    color: #7f8c8d;
    font-weight: 400;
}

.form-section {
    margin-bottom: 30px;
}

.input-container {
    margin-bottom: 25px;
}

.input-container label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #f7f7f7;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center; 
}

.team-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.team-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.team-input::placeholder {
    color: #bdc3c7;
}

.enter-btn {
    width: 100%;
    padding: 16px 30px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.enter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.enter-btn:active {
    transform: translateY(0);
}

.arrow-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.enter-btn:hover .arrow-icon {
    transform: translateX(5px);
}

.error-message {
    margin-top: 15px;
    padding: 12px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
    color: #c33;
    font-size: 14px;
    text-align: center;
}

.hidden {
    display: none !important;
}

.loading-indicator {
    text-align: center;
    margin-top: 30px;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-indicator p {
    color: #7f8c8d;
    font-size: 16px;
}

/* ============================================================================
   LOADING GIF
   ============================================================================ */
.loading-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #FFFFFF; /* 🔥 FONDO BLANCO PURO */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    animation: fadeIn 0.3s ease;
}

.loading-video {
    width: 50%;
    max-width: 600px;
    height: auto;
    object-fit: contain;
    border: none; /* 🔥 SIN BORDES */
    border-radius: 0; /* 🔥 SIN BORDER RADIUS */
    box-shadow: none; /* 🔥 SIN SOMBRAS */
    background: transparent; /* 🔥 FONDO TRANSPARENTE */
}

.loading-video-container.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 🔥 RESPONSIVE - Más grande en móviles */
@media (max-width: 768px) {
    .loading-video {
        width: 70%;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .loading-video {
        width: 85%;
        max-width: 300px;
    }
}

/* ============================================================================
   Footer
   ============================================================================ */

.footer {
    position: absolute;
    bottom: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 600px) {
    .content-wrapper {
        padding: 40px 30px;
    }

    .main-title {
        font-size: 32px;
    }

    .subtitle {
        font-size: 14px;
    }
}